<!DOCTYPE html>



  


<html class="theme-next mist use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.3" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.3">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.3" color="#222">





  <meta name="keywords" content="java,spring,spring cloud," />










<meta name="description" content="本文代码地址  https://github.com/Colinlyj210/spring-cloud-demo https://github.com/Colinlyj210/spring-cloud-demo-config  Spring Cloud大家庭 Eureka：服务注册和发现组件 Ribbon：负载均衡 H">
<meta name="keywords" content="java,spring,spring cloud">
<meta property="og:type" content="article">
<meta property="og:title" content="Spring Cloud介绍及与Dubbo的对比">
<meta property="og:url" content="https://www.lyj210.cn/2018/10/11/Spring Cloud/index.html">
<meta property="og:site_name" content="LYJ&#39;s NOTES">
<meta property="og:description" content="本文代码地址  https://github.com/Colinlyj210/spring-cloud-demo https://github.com/Colinlyj210/spring-cloud-demo-config  Spring Cloud大家庭 Eureka：服务注册和发现组件 Ribbon：负载均衡 Hystrix：熔断组件 Config：统一配置管理 Zuul：路由网关 Bus：">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="https://www.lyj210.cn/2018/10/11/images/spring%20cloud.png">
<meta property="og:image" content="https://www.lyj210.cn/2018/10/11/images/eureka.png">
<meta property="og:image" content="https://www.lyj210.cn/2018/10/11/images/ribbon.png">
<meta property="og:image" content="https://www.lyj210.cn/2018/10/11/images/hystric.png">
<meta property="og:image" content="https://www.lyj210.cn/2018/10/11/images/config1.png">
<meta property="og:image" content="https://www.lyj210.cn/2018/10/11/images/config.png">
<meta property="og:image" content="https://www.lyj210.cn/2018/10/11/images/zuul.jpg">
<meta property="og:image" content="https://www.lyj210.cn/2018/10/11/images/bus.png">
<meta property="og:image" content="https://www.lyj210.cn/2018/10/11/images/dubbo.png">
<meta property="og:image" content="https://www.lyj210.cn/2018/10/11/images/dubbovsspring.jpeg">
<meta property="og:updated_time" content="2018-12-11T02:29:23.530Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Spring Cloud介绍及与Dubbo的对比">
<meta name="twitter:description" content="本文代码地址  https://github.com/Colinlyj210/spring-cloud-demo https://github.com/Colinlyj210/spring-cloud-demo-config  Spring Cloud大家庭 Eureka：服务注册和发现组件 Ribbon：负载均衡 Hystrix：熔断组件 Config：统一配置管理 Zuul：路由网关 Bus：">
<meta name="twitter:image" content="https://www.lyj210.cn/2018/10/11/images/spring%20cloud.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Mist',
    version: '5.1.3',
    sidebar: {"position":"left","display":"always","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://www.lyj210.cn/2018/10/11/Spring Cloud/"/>





  <title>Spring Cloud介绍及与Dubbo的对比 | LYJ's NOTES</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">LYJ's NOTES</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <h1 class="site-subtitle" itemprop="description"></h1>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://www.lyj210.cn/2018/10/11/Spring Cloud/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="LYJ">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="LYJ's NOTES">
    </span>

    
      <header class="post-header">

        
        
          <h2 class="post-title" itemprop="name headline">Spring Cloud介绍及与Dubbo的对比</h2>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2018-10-11T20:52:02+08:00">
                2018-10-11
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/java/" itemprop="url" rel="index">
                    <span itemprop="name">java</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p><strong>本文代码地址</strong></p>
<ol>
<li><a href="https://github.com/Colinlyj210/spring-cloud-demo" target="_blank" rel="noopener">https://github.com/Colinlyj210/spring-cloud-demo</a></li>
<li><a href="https://github.com/Colinlyj210/spring-cloud-demo-config" target="_blank" rel="noopener">https://github.com/Colinlyj210/spring-cloud-demo-config</a></li>
</ol>
<h1 id="Spring-Cloud大家庭"><a href="#Spring-Cloud大家庭" class="headerlink" title="Spring Cloud大家庭"></a>Spring Cloud大家庭</h1><ul>
<li>Eureka：服务注册和发现组件</li>
<li>Ribbon：负载均衡</li>
<li>Hystrix：熔断组件</li>
<li>Config：统一配置管理</li>
<li>Zuul：路由网关</li>
<li>Bus：消息总线</li>
<li>Sleuth：分布式链路追踪</li>
<li>…</li>
</ul>
<p><img src="../images/spring cloud.png" alt="spring cloud"></p>
<h2 id="Eureka"><a href="#Eureka" class="headerlink" title="Eureka"></a>Eureka</h2><p>Spring Cloud Eureka提供服务端与客户端，服务端即是服务注册中心，客户端完成注册与发现。</p>
<p><img src="../images/eureka.png" alt="eureka"></p>
<h2 id="Ribbon"><a href="#Ribbon" class="headerlink" title="Ribbon"></a>Ribbon</h2><p>在微服务中使用Ribbon实现负载均衡，Ribbon先从Eureka Server中获取列表，然后根据负载均衡算法进行负载均衡，将请求转发到其他微服务。</p>
<p><img src="../images/ribbon.png" alt="ribbon"></p>
<h2 id="Hystrix"><a href="#Hystrix" class="headerlink" title="Hystrix"></a>Hystrix</h2><p>由于网络原因或者自身的原因，服务并不能保证100%可用，如果单个服务出现问题，调用这个服务就会出现线程阻塞，此时若有大量的请求涌入，Servlet容器的线程资源会被消耗完毕，导致服务瘫痪。服务与服务之间的依赖性，故障会传播，会对整个微服务系统造成灾难性的严重后果，这就是服务故障的“雪崩”效应。为了解决这个问题，业界提出了断路器模型。</p>
<p><img src="../images/hystric.png" alt="hystric"></p>
<h2 id="Config"><a href="#Config" class="headerlink" title="Config"></a>Config</h2><p>在分布式系统中，由于服务数量巨多，为了方便服务配置文件统一管理，实时更新，所以需要分布式配置中心组件。在Spring Cloud中，有分布式配置中心组件spring cloud config ，它支持配置服务放在配置服务的内存中（即本地），也支持放在远程Git仓库中。在spring cloud config 组件中，分两个角色，一是config server，二是config client。</p>
<p><img src="../images/config1.png" alt="config"></p>
<p><img src="../images/config.png" alt="config"></p>
<h2 id="Zuul"><a href="#Zuul" class="headerlink" title="Zuul"></a>Zuul</h2><p>Zuul的主要功能是路由转发和过滤器。路由功能是微服务的一部分，比如/api/user转发到到user服务，/api/shop转发到到shop服务。zuul默认和Ribbon结合实现了负载均衡的功能。</p>
<p>Zuul有以下等功能：</p>
<ul>
<li>Dynamic Routing</li>
<li>Authentication</li>
<li>Security</li>
<li>Static Response handling</li>
<li>Stress Testing</li>
<li>Service Migration</li>
<li>Load Shedding</li>
</ul>
<p><img src="../images/zuul.jpg" alt="zuul"></p>
<h2 id="Bus"><a href="#Bus" class="headerlink" title="Bus"></a>Bus</h2><p>Spring Cloud Bus 将分布式的节点用轻量的消息代理连接起来。它可以用于广播配置文件的更改或者服务之间的通讯，也可以用于监控。当git文件更改的时候，通过pc端用post 向端口为8882的config-client发送请求/bus/refresh／；此时8882端口会发送一个消息，由消息总线向其他服务传递，从而使整个微服务集群都达到更新配置文件。（Webhook）</p>
<p><img src="../images/bus.png" alt="bus"></p>
<h2 id="Sleuth"><a href="#Sleuth" class="headerlink" title="Sleuth"></a>Sleuth</h2><p>微服务架构上通过业务来划分服务的，通过REST调用，对外暴露的一个接口，可能需要很多个服务协同才能完成这个接口功能，如果链路上任何一个服务出现问题或者网络超时，都会形成导致接口调用失败。随着业务的不断扩张，服务之间互相调用会越来越复杂。Spring Cloud Sleuth 主要功能就是在分布式系统中提供追踪解决方案，并且兼容支持了 zipkin，你只需要在pom文件中引入相应的依赖即可。</p>
<h1 id="Spring-Cloud-VS-Dubbo"><a href="#Spring-Cloud-VS-Dubbo" class="headerlink" title="Spring Cloud VS Dubbo"></a>Spring Cloud VS Dubbo</h1><h2 id="Dubbo"><a href="#Dubbo" class="headerlink" title="Dubbo"></a>Dubbo</h2><p><img src="../images/dubbo.png" alt="未命名文件"></p>
<h2 id="Spring-Cloud-与Dubbo核心架构要素对比"><a href="#Spring-Cloud-与Dubbo核心架构要素对比" class="headerlink" title="Spring Cloud 与Dubbo核心架构要素对比"></a>Spring Cloud 与Dubbo核心架构要素对比</h2><table>
<thead>
<tr>
<th>微服务关注点</th>
<th>Spring Cloud</th>
<th>Dubbo</th>
</tr>
</thead>
<tbody>
<tr>
<td>服务注册中心</td>
<td>Eureka</td>
<td>Zookeeper</td>
</tr>
<tr>
<td>服务调用方式</td>
<td>REST API</td>
<td>RPC</td>
</tr>
<tr>
<td>服务网关</td>
<td>Zuul</td>
<td>无</td>
</tr>
<tr>
<td>断路器</td>
<td>Hystrix</td>
<td>不完善</td>
</tr>
<tr>
<td>分布式配置</td>
<td>Config</td>
<td>无</td>
</tr>
<tr>
<td>负载均衡</td>
<td>Ribbon</td>
<td>自带</td>
</tr>
<tr>
<td>分布式追踪</td>
<td>Spring Cloud Sleuth</td>
<td>无</td>
</tr>
<tr>
<td>消息总线</td>
<td>Spring Cloud Bus</td>
<td>无</td>
</tr>
</tbody>
</table>
<p>​    Dubbo 只是实现了服务治理，而 Spring Cloud 子项目分别覆盖了微服务架构下的众多部件，服务治理只是其中的一个方面。</p>
<p>​    Dubbo 提供了各种 Filter，对于上述中“无”的要素，可以通过扩展 Filter 来完善。例如：</p>
<p>​    分布式配置：可以使用淘宝的 diamond、百度的 disconf 来实现分布式配置管理。</p>
<p>​    服务跟踪：可以使用京东开源的 Hydra，或者扩展 Filter 用 Zippin 来做服务跟踪。</p>
<p>​    批量任务：可以使用当当开源的 Elastic-Job、tbschedule。</p>
<p><strong>从核心要素来看，Spring Cloud 更胜一筹，在开发过程中只要整合 Spring Cloud 的子项目就可以顺利的完成各种组件的融合，而 Dubbo 却需要通过实现各种 Filter 来做定制，开发成本以及技术难度略高。</strong></p>
<h2 id="通讯协议"><a href="#通讯协议" class="headerlink" title="通讯协议"></a>通讯协议</h2><p><strong>Dubbo 使用 RPC 通讯协议，</strong>提供序列化方式如下：</p>
<ul>
<li>Dubbo：Dubbo 缺省协议采用单一长连接和 NIO 异步通讯，适合于小数据量大并发的服务调用，以及服务消费者机器数远大于服务提供者机器数的情况。</li>
<li><p>RMI：RMI 协议采用 JDK 标准的 java.rmi.* 实现，采用阻塞式短连接和 JDK 标准序列化方式。</p>
</li>
<li><p>Hessian：Hessian 协议用于集成 Hessian 的服务，Hessian 底层采用 HTTP 通讯，采用 Servlet 暴露服务，Dubbo 缺省内嵌 Jetty 作为服务器实现。</p>
</li>
<li><p>HTTP：采用 Spring 的 Http Invoker 实现。</p>
</li>
<li>Webservice：基于 CXF 的 frontend-simple 和 transports-http 实现。</li>
</ul>
<p><strong>Spring Cloud 使用 HTTP 协议的 REST API。</strong></p>
<h2 id="性能比较"><a href="#性能比较" class="headerlink" title="性能比较"></a>性能比较</h2><p><img src="../images/dubbovsspring.jpeg" alt="dubbovsspring"></p>
<p>Dubbo 支持各种通信协议，而且消费方和服务方使用长链接方式交互，通信速度上略胜 Spring Cloud，如果对于系统的响应时间有严格要求，长链接更合适。</p>
<h2 id="服务依赖方式"><a href="#服务依赖方式" class="headerlink" title="服务依赖方式"></a>服务依赖方式</h2><p>Dubbo需要为每个微服务定义各自的 Interface 接口，并通过持续集成发布到私有仓库中。调用方应用对微服务提供的抽象接口存在强依赖关系，开发、测试、集成环境都需要严格的管理版本依赖。</p>
<p>Spring Cloud 通过 Json 交互，省略了版本管理的问题，但是具体字段含义需要统一管理，自身 Rest API 方式交互，为跨平台调用奠定了基础。</p>
<h2 id="组件运行流程"><a href="#组件运行流程" class="headerlink" title="组件运行流程"></a>组件运行流程</h2><p>Dubbo 需要自己开发一套 API 网关，而 Spring Cloud 则可以通过 Zuul 配置即可完成网关定制。</p>
<h1 id="Kubernates"><a href="#Kubernates" class="headerlink" title="Kubernates"></a>Kubernates</h1><p>Kubernates是一个容器集群管理系统，为容器化的应用程序提供部署运行、维护、扩展、资源调度、服务发现等功能。Kubernates是Google运行Borg大规模系统达15年之久的一个经验总结。它结合了社区的最佳创意和实践，旨在帮助开发人员将容器打包、动态编排，同时帮助各大公司向微服务方向进行技术演进。</p>
<h2 id="Kubernates-VS-Spring-Cloud"><a href="#Kubernates-VS-Spring-Cloud" class="headerlink" title="Kubernates VS Spring Cloud"></a>Kubernates VS Spring Cloud</h2><table>
<thead>
<tr>
<th>服务关注点</th>
<th>Spring Cloud</th>
<th>Kubernates</th>
</tr>
</thead>
<tbody>
<tr>
<td>配置管理</td>
<td>Config</td>
<td>Kubernates ConfigMap</td>
</tr>
<tr>
<td>服务发现</td>
<td>Eureka</td>
<td>Kubernates Services</td>
</tr>
<tr>
<td>负载均衡</td>
<td>Ribbon</td>
<td>Kubernates Services</td>
</tr>
<tr>
<td>网关</td>
<td>Zuul</td>
<td>Kubernates Services</td>
</tr>
<tr>
<td>分布式追踪</td>
<td>Sleuth</td>
<td>Open tracing</td>
</tr>
<tr>
<td>容错</td>
<td>Hystrix</td>
<td>Kubernates Health Check</td>
</tr>
<tr>
<td>分布式日志</td>
<td>ELK</td>
<td>EFK</td>
</tr>
<tr>
<td>任务管理</td>
<td>Spring Batch</td>
<td>Kubernates Jobs</td>
</tr>
</tbody>
</table>
<p><strong>Kubernates是支持多语言，是一个容器管理平台，使程序容器化，并在容器管理上提供微服务功能。</strong></p>
<p><strong>除了提供基本的构建微服务功能外，还提供了环境、资源限制、管理应用程序生命周期的功能。Kubernates更像是一个平台，而Spring Cloud是一个框架。</strong></p>
<p><strong>Kubernates面向DevOps人员，普通开发人员需要学习很多这方面的知识，而且新特性更新快，需要DevOps人员学习跟进，学习成本非常高。</strong></p>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/java/" rel="tag"># java</a>
          
            <a href="/tags/spring/" rel="tag"># spring</a>
          
            <a href="/tags/spring-cloud/" rel="tag"># spring cloud</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2018/08/20/JAVA多线程/" rel="next" title="JAVA多线程">
                <i class="fa fa-chevron-left"></i> JAVA多线程
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2018/12/11/nginx-rtmp-微信小程序直播/" rel="prev" title="nginx+rtmp+微信小程序直播">
                nginx+rtmp+微信小程序直播 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="/images/avatar.gif"
                alt="LYJ" />
            
              <p class="site-author-name" itemprop="name">LYJ</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">21</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">5</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/tags/index.html">
                  <span class="site-state-item-count">18</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          <div class="links-of-author motion-element">
            
              
                <span class="links-of-author-item">
                  <a href="https://github.com/Colinlyj210" target="_blank" title="GitHub">
                    
                      <i class="fa fa-fw fa-github"></i>GitHub</a>
                </span>
              
                <span class="links-of-author-item">
                  <a href="mailto:blq.lyj@gmail.com" target="_blank" title="E-Mail">
                    
                      <i class="fa fa-fw fa-envelope"></i>E-Mail</a>
                </span>
              
            
          </div>

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#Spring-Cloud大家庭"><span class="nav-number">1.</span> <span class="nav-text">Spring Cloud大家庭</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#Eureka"><span class="nav-number">1.1.</span> <span class="nav-text">Eureka</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Ribbon"><span class="nav-number">1.2.</span> <span class="nav-text">Ribbon</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Hystrix"><span class="nav-number">1.3.</span> <span class="nav-text">Hystrix</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Config"><span class="nav-number">1.4.</span> <span class="nav-text">Config</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Zuul"><span class="nav-number">1.5.</span> <span class="nav-text">Zuul</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Bus"><span class="nav-number">1.6.</span> <span class="nav-text">Bus</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Sleuth"><span class="nav-number">1.7.</span> <span class="nav-text">Sleuth</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Spring-Cloud-VS-Dubbo"><span class="nav-number">2.</span> <span class="nav-text">Spring Cloud VS Dubbo</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#Dubbo"><span class="nav-number">2.1.</span> <span class="nav-text">Dubbo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Spring-Cloud-与Dubbo核心架构要素对比"><span class="nav-number">2.2.</span> <span class="nav-text">Spring Cloud 与Dubbo核心架构要素对比</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#通讯协议"><span class="nav-number">2.3.</span> <span class="nav-text">通讯协议</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#性能比较"><span class="nav-number">2.4.</span> <span class="nav-text">性能比较</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#服务依赖方式"><span class="nav-number">2.5.</span> <span class="nav-text">服务依赖方式</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#组件运行流程"><span class="nav-number">2.6.</span> <span class="nav-text">组件运行流程</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Kubernates"><span class="nav-number">3.</span> <span class="nav-text">Kubernates</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#Kubernates-VS-Spring-Cloud"><span class="nav-number">3.1.</span> <span class="nav-text">Kubernates VS Spring Cloud</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2019</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">LYJ</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Mist</a> v5.1.3</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.3"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.3"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.3"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.3"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.3"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
